<?php echo $this->element('displayHeader'); ?>
<?php echo $ajax->form('CustUsers', 'post', array('update'=>'content', 'indicator' => 'indicator', 'url'=>array('action'=>'save'))); ?>

<div class="toolbar">
    <div id="tLeft">
        <?php echo $this->element('toolbar', array('buttons' => array('back'))); ?>
    </div>
    <div id="tRight"><?php echo $this->element('neighbors', array('model' => 'User', 'title' => 'name')); ?></div>
</div>

<fieldset>
    <legend>User Information</legend>
    <table id="formTable">
        <thead></thead>
        <tbody>
            <tr>
                <?php echo $form->input("User.id"); ?>
                <td width="150px"><?php echo $form->label("User.username", "Username", array('class' => 'required')) ?></td>
                <td><span><?php echo $this->data['User']['username'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label('User.name', 'Name', array('class' => 'required')) ?></td>
                <td><span><?php echo $this->data['User']['name'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label('User.surname', 'Surname', array('class' => 'required')) ?></td>
                <td><span><?php echo $this->data['User']['surname'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label('User.email', 'Email') ?></td>
                <td><span><?php echo $this->data['User']['email'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label('User.tel', 'Telephone') ?></td>
                <td><span><?php echo $this->data['User']['tel'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label('User.customer_id') ?></td>
                <td><span><?php echo $this->data['Customer']['name'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label('User.site_id', 'Site') ?></td>
                <td><span><?php echo $this->data['Site']['name'] ?></span></td>
            </tr>

        </tbody>
    </table>
</fieldset>

<?php echo $form->end(); ?>





